/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fii.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Zeus
 */
@Embeddable
public class PgEquivalenciasPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "pg_codPlan", nullable = false, length = 5)
    private String pgcodPlan;
    @Basic(optional = false)
    @Column(name = "pg_codCurso", nullable = false, length = 6)
    private String pgcodCurso;
    @Basic(optional = false)
    @Column(name = "pg_codCurso_Equiv", nullable = false, length = 6)
    private String pgcodCursoEquiv;

    public PgEquivalenciasPK() {
    }

    public PgEquivalenciasPK(String pgcodPlan, String pgcodCurso, String pgcodCursoEquiv) {
        this.pgcodPlan = pgcodPlan;
        this.pgcodCurso = pgcodCurso;
        this.pgcodCursoEquiv = pgcodCursoEquiv;
    }

    public String getPgcodPlan() {
        return pgcodPlan;
    }

    public void setPgcodPlan(String pgcodPlan) {
        this.pgcodPlan = pgcodPlan;
    }

    public String getPgcodCurso() {
        return pgcodCurso;
    }

    public void setPgcodCurso(String pgcodCurso) {
        this.pgcodCurso = pgcodCurso;
    }

    public String getPgcodCursoEquiv() {
        return pgcodCursoEquiv;
    }

    public void setPgcodCursoEquiv(String pgcodCursoEquiv) {
        this.pgcodCursoEquiv = pgcodCursoEquiv;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pgcodPlan != null ? pgcodPlan.hashCode() : 0);
        hash += (pgcodCurso != null ? pgcodCurso.hashCode() : 0);
        hash += (pgcodCursoEquiv != null ? pgcodCursoEquiv.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PgEquivalenciasPK)) {
            return false;
        }
        PgEquivalenciasPK other = (PgEquivalenciasPK) object;
        if ((this.pgcodPlan == null && other.pgcodPlan != null) || (this.pgcodPlan != null && !this.pgcodPlan.equals(other.pgcodPlan))) {
            return false;
        }
        if ((this.pgcodCurso == null && other.pgcodCurso != null) || (this.pgcodCurso != null && !this.pgcodCurso.equals(other.pgcodCurso))) {
            return false;
        }
        if ((this.pgcodCursoEquiv == null && other.pgcodCursoEquiv != null) || (this.pgcodCursoEquiv != null && !this.pgcodCursoEquiv.equals(other.pgcodCursoEquiv))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.fii.entity.PgEquivalenciasPK[ pgcodPlan=" + pgcodPlan + ", pgcodCurso=" + pgcodCurso + ", pgcodCursoEquiv=" + pgcodCursoEquiv + " ]";
    }
    
}
